<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>修改题目</title>
</head>
<body>
<h1>修改题目</h1>
<form action="/api/problem/save" method="post">
    <table>
        <tr>
            <td>ID</td>
            <td><input readonly="readonly" th:value="${problem.problemid}" name="problemid"></td>
        </tr>
        <tr>
            <td>标题</td>
            <td><input type="text" name="title" th:value="${problem.title}"></td>
        </tr>
        <tr>
            <td>内容</td>
            <td><input type="text" name="description" th:value="${problem.description}"></td>
        </tr>
        <tr>
            <td>输入描述</td>
            <td><input type="text" name="input_description" th:value="${problem.input_description}"></td>
        </tr>
        <tr>
            <td>输出描述</td>
            <td><input type="text" name="output_description" th:value="${problem.output_description}"></td>
        </tr>
        <tr>
            <td>难度</td>
            <td><input type="number" name="difficulty" th:value="${problem.difficulty}"></td>
        </tr>
    </table>
    <input type="submit" value="提交">
</form>
</body>
</html>